<h1>Blog List</h1>

<table>
  <thead>
    <tr>
      <th>Id blog</th>
      <th>Groupe</th>
      <th>Titre</th>
      <th>Date creation</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($blog_list as $blog): ?>
    <tr>
      <td><a href="<?php echo url_for('blog/edit?id_blog='.$blog->getIdBlog()) ?>"><?php echo $blog->getIdBlog() ?></a></td>
      <td><?php echo $blog->getGroupe() ?></td>
      <td><?php echo $blog->getTitre() ?></td>
      <td><?php echo $blog->getDateCreation() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('blog/new') ?>">New</a>
